//package com.cdinternationalcompany.syhapp.common.channel
//
//import android.app.Activity;
//import android.content.Intent
//import com.cdinternationalcompany.syhapp.common.entity.VideoDetailRequest
//import com.cdinternationalcompany.syhapp.video.VideoDetailActivity
//import com.google.gson.Gson
//import io.flutter.plugin.common.MethodChannel
//import org.json.JSONObject
//
//class VideoDetailApi(private val mActivity: Activity) : BaseApi<Map<String, String>, String>() {
//    companion object {
//        const val REQUEST_METHOD = "VideoDetailApi/openDetail"
//    }
//
//    override fun doAction(param: Map<String, String>, result: MethodChannel.Result) {
//        val intent = Intent(mActivity, VideoDetailActivity::class.java).apply {
//            val param = Gson().fromJson(JSONObject(param).toString(), VideoDetailRequest::class.java)
//            putExtra(VideoDetailActivity.KEY_PARAM, param)
//        }
//        mActivity.startActivity(intent)
//    }
//}
